//
//  PicturePhotoAlbumTool.h
//  BaibuSeller
//
//  Created by xmen on 2019/9/10.
//  Copyright © 2019 whawhawhat. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
    PhotoNotAllowsEditing = 0,
    PhotoAllowsEditing = 1,
    
} PhotoEditType;

typedef enum : NSUInteger {
    PhotoNotSave = 0,
    PhotoSave = 1,
    
} PhotoSaveType;


@interface PicturePhotoAlbumTool : NSObject
/**
 拍照后是否可编辑默认不编辑
*/
@property (nonatomic, assign) PhotoEditType editType;
/**
 拍照后是否保存图片默认不保存
*/
@property (nonatomic, assign) PhotoSaveType saveType;


typedef void(^ReturnImageArrayBlock)(NSArray <UIImage *>*imageUrlArray);


/**
 回调前拍照或者选中的图片(UIimage)数组
 @param photoMaxCount 上传照片的最大个数
 @param photoCount 已上传照片的个数

 */
- (void)showToolWithViewController:(UIViewController *)viewController photoMaxCount:(NSInteger)photoMaxCount photoCount:(NSInteger)photoCount returnImageArrayBlock:(ReturnImageArrayBlock)returnImageArrayBlock;

/**
 单例初始化
 */
+ (instancetype)sharedInstance;

@end

NS_ASSUME_NONNULL_END
